package com.ji.protocol;

/**
 * Title:
 * Description:
 * Author:吉
 * Since:2017/5/22
 * Version:1.1.0
 */
public class JCProtocol {

    private JCMsgHeader header;
    private String content;



    public JCProtocol(JCMsgHeader header, byte[] bytes) {
        this.setHeader(header);
        this.setContent(new String(bytes));
    }

    public JCProtocol(String msg) {
        this.content=msg;
    }

    public JCMsgHeader getHeader() {
        return header;
    }

    public void setHeader(JCMsgHeader header) {
        this.header = header;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "JCProtocol{" +
                "header=" + header +
                ", content='" + content + '\'' +
                '}';
    }
}
